﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SpringStudio.Common;
using SpringStudio.DAL;
using Sdepci.InfoCode.BLL.CodeDesign;

namespace Sdepci.InfoCode.Web.CodeDesign
{
    public partial class TypeRuleModule : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.BindData();
            }
        }

        private void BindData()
        {
            DataSet ds = new TypeRuleManager().GetTypeRuleDs();

            this.info_source.DataSource = ds;
            this.info_source.DataValueField = "RuleGuid";
            this.info_source.DataTextField = "RuleName";
            this.info_source.DataBind();
            this.info_source.Items.Insert(0, new ListItem("=请选择编码类型=", ""));

            this.infoserial_source.DataSource = ds;
            this.infoserial_source.DataValueField = "RuleGuid";
            this.infoserial_source.DataTextField = "RuleName";
            this.infoserial_source.DataBind();
            this.infoserial_source.Items.Insert(0, new ListItem("=请选择编码类型=", ""));
        }
    }
}
